package com.hxkj.client.service;

import com.hxkj.domain.po.Content;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @InterfaceName ContentServiceClient
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/9/9 14:46
 * @Version 1.0
 */
@FeignClient(name = "cms-article")
public interface ContentServiceClient {

    /**
     * @author Mr.zheng
     * @Description getContent 根据文章ID获取映射内容
     * @Date 15:28 2018/9/9
     * @Param [content]
     * @return java.util.concurrent.Callable<com.platform.common.domain.result.ResultDataStruct<com.hxkj.domain.po.Content>>
     **/
    @RequestMapping(value = "/content/getContent", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultDataStruct<Content> getContent(@RequestBody Content content) throws Exception;



    /**
     * @author Mr.zheng
     * @Description saveContent 根据文章ID新增其映射内容
     * @Date 15:42 2018/9/9
     * @Param [content]
     * @return java.util.concurrent.Callable<com.platform.common.domain.result.ResultMessageStruct>
     **/
    @RequestMapping(value = "/content/saveContent", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct saveContent(@RequestBody Content content) throws Exception;
}
